#/bin/sh

LOG_FILE="/var/wget_import.log"
`date >> $LOG_FILE`

HOST="qc.goomtu.com"
PUBLICID="1"
SQL_FILE_NAME="20160320173138_all_v1.sql"

ENCODE="goomtu_template_remind";
url="${HOST}/index.php?s=/addon/Database/Database/restore/encode/${ENCODE}/publicid/${PUBLICID}/sql_file/${SQL_FILE_NAME}.html";

wget $url -q  --output-document=/tmp/wget.tmp
cat /tmp/wget.tmp>> $LOG_FILE

echo "" >> $LOG_FILE
echo "" >> $LOG_FILE
echo "" >> $LOG_FILE